package parkshop.pmcourse.service;

import java.util.List;

import parkshop.pmcourse.domain.Product;
import parkshop.pmcourse.dto.PageBean;

public interface ProductService {
	Product getProductById(long id);
	List<Product> getTopProductsByAdmin(int pageNumber);
	void saveProduct(Product product);
	PageBean getProductsByPage(int pageNumber,Long shopId);	
	PageBean getProductsByType(int pageNumber,String productType,Long shopId);	
	
	boolean deleteProductById(int id);
	boolean updateProduct(Product product);
	PageBean getProductNewComment(Long productId,int pageNumber);
	
}
